package com.fafu.service.Impl;

import com.fafu.dao.mapper.ImageMapper;
import com.fafu.model.Image;
import com.fafu.service.ImageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Map;

@Service
public class ImageServiceImpl implements ImageService {
    @Autowired
    private ImageMapper imageMapper;
    @Override
    public int insert(Image image) {
        imageMapper.insertAndGetKey(image);
        return image.getId();
    }
}
